home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
04
/
4
/
DISK0442.ZIP
/
SAMPLE.CDE
< prev
next >
Wrap
Text File
|
1987-10-04
|
2KB
|
58 lines
')?#
FOR I:=1 TO ORD(LI) DO BEGIN~---~END?<LEN INFIX>?
?CPAGE@.STRNG[LSP]:=TINFX[I];~LSP:=SUCC(LSP)?#
ELSE IF NOT PRINTABLE THEN BEGIN~---~END?<ERROR>?
?OUTP;~WRITELN(OUTDIAG,' ***** MAJOR ERROR SUPPRESSED OUTPUT.',?#
OUTP;WRITELN(OUTDIAG,' ***** MAJOR ERROR SUPPRESSED OUTPUT.',??
?' CORRECT BEFORE RE-RUNNING.')?#
ELSE BEGIN~---~END!844?<SUCCESS>?
?IF SRCFLAG THEN BEGIN~---~END;??
?IF PLIFLAG THEN BEGIN~---~END;??
?PDN:=DDN;??
?(*GO PAGINATE*)??
?PDN[6]:='-';??
?PDN[7]:=CPN[2];~PDN[8]:=CPN[3];??
?(*CLOSE LAYOUT STAGE*)??
?(*FILL IN PAGE NUMBERS AS FINALLY PAGINATED*)??
?(*OUTPUT ROOT PAGE*)??
?(*SUBPAGE OUTPUT*)??
?OUTP;WRITELN(OUTDIAG,' PRINT DONE AT ',CLOCK);??
?OUTP;WRITELN(OUTDIAG,' NODES:',NCT:5,'; PAGES:',?#
OUTP;WRITELN(OUTDIAG,' NODES:',NCT:5,'; PAGES:',??
+?LPCNT:3,'; N/P:',(NCT DIV LPCNT):4,'; PASSES:',PASSCNT:3,?+++?
+?'; CODE PAGES:',NSP:2)?#
IF SRCFLAG THEN BEGIN~---~END;?<SRCPUNCH>?
?(*BODY AND ENDWARNIER*)??
?OUTP;WRITELN(OUTDIAG,' SRCPUNCH DONE AT ',CLOCK);?#
(*BODY AND ENDWARNIER*)??
?SRCOUT(H);??
?WRITELN(SRCPUNCH,EWDL);?#
IF PLIFLAG THEN BEGIN~---~END;?<PLIPUNCH>?
?PLIOUT(H);??
?OUTP;WRITELN(OUTDIAG,' PLIPUNCH DONE AT ',CLOCK)?#
(*GO PAGINATE*)??
?PASSCNT:=0;??
?REPEAT~---~UNTIL((GMXH<=DGMPL)AND(GMXD<=COLPP))OR(NQ=0);?#
REPEAT~---~UNTIL((GMXH<=DGMPL)AND(GMXD<=COLPP))OR(NQ=0);?<PAGEPASSES>?
?NQ:=0;~GMXH:=0;~PASSCNT:=SUCC(PASSCNT);??
?(*DET'N OF NQLIM*)??
?FOR I:=1 TO MAXDEPTH DO TOTWIDTH[I]~:=-1;??
?CONVERT(PASSCNT,CPN);??
?H@.ST:=~LAYOUT(H@.NLVL)-ORD(H@.LPN) DIV 2;??
?IF (NQ>0) AND ~((GMXH>DGMPL)OR ~(GMXD>COLPP)) THEN DOPAGES?#
(*DET'N OF NQLIM*)??
?NQLIM:=(NCT DIV 35)-LPCNT+1;??
?IF PASSCNT>NQLIM THEN NQLIM:=LPCNT DIV 2;??
?IF NQLIM=0 THEN NQLIM:=1;?#
(*CLOSE LAYOUT STAGE*)??
?OUTP;WRITELN(OUTDIAG,' LAYOUT DONE AT ',CLOCK);??
?IF (NQ=0) AND ~((GMXH>DGMPL) OR ~(GMXD>COLPP)) THEN?#
IF (NQ=0) AND ((GMXH>DGMPL) OR (GMXD>COLPP)) THEN??
?(*ANY ERROR ~MESSAGE*)??
+?BEGIN~---~END;!1146?#
+BEGIN~---~END;!1146?<ERROR>?
?OUTP;~WRITELN(OUTDIAG,' ***** NO PAGE ',?#
OUTP;WRITELN(OUTDIAG,' ***** NO PAGE ',??
+?'CANDIDATE. PAGINATION HALTED AT ',LPCNT:3,?+++?
+?' PAGES WITH ',GMXH:4,' LINES AND ',GMXD:2,' COLUMNS.')?#
(*FILL IN PAGE NUMBER